package day06demo;

import java.util.Calendar;
import java.util.Random;

public class TestArray {
    public static void main(String[] args) {
        int[] arr = array(5,100);
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + " ");
        }
    }
    public static int[] array(int len,int max){
        int[] arr = new int[len];
        Random r = new Random();

        for (int i = 0; i < arr.length; i++) {
            int number = r.nextInt(max);
            arr[i] = number;
        }
        return arr;
    }
}
